package com.augmentum.login.common;

import java.util.ArrayList;
import java.util.List;

public class BeanConfig {

    private String id;
    private String className;
    private String scope;
    private List<BeanProperty> beanPropertys = new ArrayList<BeanProperty>();

    public BeanConfig() {

    }

    public List<BeanProperty> getBeanPropertys() {
        return beanPropertys;
    }

    public void setBeanPropertys(List<BeanProperty> beanPropertys) {
        this.beanPropertys = beanPropertys;
    }

    public void addProperty(BeanProperty property) {
        beanPropertys.add(property);
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BeanConfig [id=");
        builder.append(id);
        builder.append(", className=");
        builder.append(className);
        builder.append(", scope=");
        builder.append(scope);
        builder.append(", beanPropertys=");
        builder.append(beanPropertys);
        builder.append("]");
        return builder.toString();
    }
}
